/**
author: sailing
date: 2016/11/17
fun： 获取数据去画topo
***/
import fetchJson from './fetchJson'
import tools from './tools'
import data from './data'
import eventBus from '../eventBus'
export default {
  start (data) {
    eventBus.bus.$message({
      message: '请选择线段!',
      type: 'warning'
    })
  },
  setLine (id, cy) {
    this.cy = cy
    var url = tools.mergeUrl('linkLine')
    fetchJson.getJson({
      self: this,
      url: url + '?' + id,
      callback: this.callback,
      error: this.error
    })
  },
  callback (data) {
    console.log('dddddddddddddddddddsgdsgdd')
  },
  error () {
  }
}
